#!/bin/bash

all_char=$@
n=0
count() {
	for i in $all_char
	do
		if [[ $i == "a" ]];then
			((n++))
		fi
	done
	echo "一共有 $n 个 a 字符串"
   local	sg="tangzhihui"
	return 9
}

count
ip add
sc(){
	echo  "sanchuang sg is $sg"
}
sc

echo "sg is $sg"
exit 99
echo "sanchuang"
